import { FC, memo } from 'react';
import OrderDropDownBase from '@/components/order-dropdown/Base';
import { HandleOrder, OrderOptions } from '@/types/OrderOptions';

interface IMonitorVersionDropDownProps {
  handleOrder: HandleOrder;
  versionOptions: OrderOptions[];
}

const MonitorVersionDropDown: FC<IMonitorVersionDropDownProps> = (props) => {
  return (
    <OrderDropDownBase
      orderOptions={props.versionOptions}
      labelMinWidth="40px"
      hasIcon={false}
      defaultOrderKey="all"
      handleOrder={props.handleOrder}
    />
  );
};

export default memo(MonitorVersionDropDown);
